From ad163903cc2d44a2033312d0685031d54aafffb2 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 10 May 1993 00:17:08 +0000 Subject: [PATCH] * blockinput.h (UNBLOCK_INPUT): We cannot assume that SIGIO is defined everywhere this file is #included; merge the two definitions for defined (SIGIO) and ! defined (SIGIO) into one, which calls reinvoke_input_signal if interrupt_input_pending is set. * keyboard.c (reinvoke_input_signal): New function. * keyboard.c (syms_of_keyboard): Doc fix for extra-keyboard-modifiers. --- src/keyboard.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index 8083c066b22..3e8a522a073 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2928,6 +2928,22 @@ input_available_signal (signo) errno = old_errno; } #endif /* SIGIO */ + +/* Send ourselves a SIGIO. + + This function exists so that the UNBLOCK_INPUT macro in + blockinput.h can have some way to take care of input we put off + dealing with, without assuming that every file which uses + UNBLOCK_INPUT also has #included the files necessary to get SIGIO. */ +void +reinvoke_input_signal () +{ +#ifdef SIGIO + kill (0, SIGIO); +#endif +} + + /* Return the prompt-string of a sparse keymap. This is the first element which is a string. @@ -4852,8 +4868,8 @@ Type this character while in a menu prompt to rotate around the lines of it."); DEFVAR_INT ("extra-keyboard-modifiers", &extra_keyboard_modifiers, "A mask of additional modifier keys to use with every keyboard character.\n\ -The modifiers of the character stored here apply to each keyboard\n\ -character we read. For example, after evaluating the expression\n\ +Emacs applies the modifiers of the character stored here to each keyboard\n\ +character it reads. For example, after evaluating the expression\n\ (setq extra-keyboard-modifiers ?\C-x)\n\ all input characters will have the control modifier applied to them.\n\ \n\ -- 2.30.2